﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
	<base href="<%=basePath%>">
	<!-- jsp文件头和头部 -->
	<%@ include file="../../system/main/main_top.jsp"%> 
	</head> 
<body>
<div id="centerOfMainFrame">
	<div class="row-fluid">
			<!-- 检索  -->
			<form action="activityenroll/goActivityEnrollList.do" method="post" name="activityenrollForm" id="activityenrollForm">
			<input type="hidden" name="act_id" value="${pageData.act_id }"/>
			<table id="table_report" class="table table-striped table-bordered table-hover">
				<thead>
					<tr>
						<th>序号</th>
						<th>用户名称</th>
						<th>性别</th>
						<th>电话号码</th>
						<th>报名人数</th>
						<th>报名金额</th>
						<th>头像</th>
						<th>报名类型</th>
						<th>付款状态</th>
						<th>报名状态</th>
						<th><i class="icon-time hidden-phone"></i>报名时间</th>
					</tr>
				</thead>
										
				<tbody>
				<!-- 开始循环 -->	
				<c:choose>
					<c:when test="${not empty varList}">
						<c:forEach items="${varList}" var="var" varStatus="vs">
							<tr>
								<td class='center' style="width: 30px;">${vs.index+1}</td>
								<td>${var.act_promotor_name }</td>
								<td>
									<c:if test="${var.gender=='1'}">男生</c:if>
									<c:if test="${var.gender=='2'}">女生</c:if>
								</td>
								<td>${var.mobile }</td>
								<td>${var.enroll_num }</td>
								<td>${var.act_amount }</td>
								<td>
									<c:if test="${var.isWeixinUser == true }">
										<a href="${var.act_promotor_img}" target="_blank"><img src="${var.act_promotor_img}" width="50"/></a>
									</c:if>
									<c:if test="${var.isWeixinUser != true }">
										<c:if test="${var.is_aliyun == true}">
											<a href="http://chatapp3.oss-cn-hangzhou.aliyuncs.com/${var.act_promotor_img}" target="_blank"><img src="http://chatapp3.oss-cn-hangzhou.aliyuncs.com/${var.act_promotor_img}" width="50"/></a>
										</c:if>
										<c:if test="${var.is_aliyun != true}">
											<a href="<%=basePath%>${var.act_promotor_img}" target="_blank"><img src="<%=basePath%>${var.act_promotor_img}" width="50"/></a>
										</c:if>
									</c:if>
								</td>
								<td>
									<c:if test="${var.enroll_method=='1'}">全额预付</c:if>
									<c:if test="${var.enroll_method=='2'}">预付定金</c:if>
									<c:if test="${var.enroll_method=='3'}">免费</c:if>
								</td>
								<td>
									<c:if test="${var.enroll_method=='1' || var.enroll_method=='2'}">
										<c:if test="${var.action_pay_state=='1'}">
											已付款
										</c:if>
										<c:if test="${var.action_pay_state=='0'}">
											未付款
										</c:if>
									</c:if>
									<c:if test="${var.enroll_method=='3'}">
										免费
									</c:if>
								</td>
								<td>
									<c:if test="${var.action_state=='1'}">
										报名成功
									</c:if>
									<c:if test="${var.action_state=='0'}">
										报名未成功
									</c:if>
								</td>
								<td>${var.action_time }</td>
							</tr>
						</c:forEach>
						
						<!-- <tr>
							<td colspan="100" class="center">您无权查看</td>
						</tr> -->
					</c:when>
					<c:otherwise>
						<tr class="main_info">
							<td colspan="11" class="center" >没有相关数据</td>
						</tr>
					</c:otherwise>
				</c:choose>
				</tbody>
			</table>
			
		<div class="page-header position-relative">
		<table style="width:100%;">
			<tr>
				<td style="vertical-align:top;"><div class="pagination" style="float: right;padding-top: 0px;margin-top: 0px;">${page.pageStr}</div></td>
			</tr>
		</table>
		</div>
		</form>
	</div>
	<!-- PAGE CONTENT ENDS HERE -->
 </div><!--/row-->
 <div id="centerOfMainFrame2" class="center" style="display: none">
	<br />
	<br />
	<br />
	<img src="static/images/jzx.gif" style="width: 50px;" /><br />
	<h4 class="lighter block green"></h4>
</div>
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script type="text/javascript" src="static/js/bootstrap.min.js"></script>
		<script type="text/javascript" src="static/js/ace-elements.min.js"></script>
		<script type="text/javascript" src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 单选框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript" src="static/js/bootbox.min.js"></script><!-- 确认窗口 -->
		<!-- 引入 -->
		
		<script type="text/javascript">
		$(top.hangge());
		</script>
		<script type="text/javascript">
		$(function() {
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			//日期框
			$('.date-picker').datepicker();
		});
		</script>
	</body>
</html>

